
const joi = require('joi')

// 定义 标题、分类Id、内容、发布状态 的验证规则
const title = joi.string().required()
const cate_id = joi.number().integer().min(1).required()
const content = joi.string().required().allow('')
const cover_img = joi.string().dataUri().required()

exports.add_article_schema = {
    body: {
        title,
        cate_id,
        content,
        cover_img
    },
}
